﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLTSCD
{
    public partial class frmDangNhap :DevComponents.DotNetBar.Office2007Form
    {
        public frmDangNhap()
        {
            
            InitializeComponent();
        }

        private void frmDangNhap_Load(object sender, EventArgs e)
        {
            this.txtUser.Focus();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           
            if ((this.txtUser.Text=="congnv")&&(this.txtPass.Text=="271190"))
            this.Close();
            else
            {
            MessageBox.Show("Không đúng tên người dùng / mật khẩu !!!","Thông báo");
            this.txtUser.Focus();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult traloi;
            traloi = MessageBox.Show("Chắc không?", "Trả lời",
            MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
            if (traloi == DialogResult.OK)
                Application.Exit();
        }
    }
}
